← Back to issue list

ProjectOptions() having wrong values

View original Launchpad issue

Metadata

Project
snapcraft (launchpad)
Number
#1973030
Type
issue
State
open
Author
~ondrak
Labels
Created
2022-05-11 14:11:47.172845+00:00
Updated
2022-07-17 22:59:48.958659+00:00
Closed

Current evaluation

No evaluation has been recorded for this issue yet.

Issue body

ProjectOptions() reports host machine value, ignoring --target-arch value. This is inconsistent with values passed later the plugins in the build script For example for --target-arch armhf ProjectOptions().is_cross_compiling: False ProjectOptions().target_arch: arm64 ProjectOptions().cross_compiler_prefix: aarch64-linux-gnu- ProjectOptions().arch_triplet: aarch64-linux-gnu ProjectOptions().deb_arch: arm64 ProjectOptions().kernel_arch: arm64 yet in the build.sh values are: export SNAPCRAFT_ARCH_TRIPLET="arm-linux-gnueabihf" export SNAPCRAFT_TARGET_ARCH="armhf"

Evaluation history

No evaluation history available.